package keeto.com.vn.bms.ui.adapter;

import java.util.ArrayList;

import keeto.com.vn.bms.model.TechniciansModel;
import keeto.com.vn.bms.ui.activity.R;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;

public class ChangeTechnicalStatusAdapter extends ArrayAdapter<TechniciansModel>{
	private Context context;
	private ArrayList<TechniciansModel> listTech = new ArrayList<TechniciansModel>();
	private EditText etName, etReason;
	private Button btConfirm, btCancel;
	
	public ChangeTechnicalStatusAdapter(Context context, ArrayList<TechniciansModel> list) {
		super(context,0,list);
		this.context = context;
		this.listTech = list;
	}
	
	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		View view = convertView;
		if (view == null) {
			LayoutInflater inflater = (LayoutInflater) context.getSystemService(Activity.LAYOUT_INFLATER_SERVICE);
			view = inflater.inflate(R.layout.reason_remove, parent, false);
		}
		btConfirm = (Button) view.findViewById(R.id.bt_remove_confirm);
		btCancel = (Button) view.findViewById(R.id.bt_remove_cancel);
		btConfirm.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				
			}
		});
		return view;
	}

}
